// pages/usercenter/components/ui-student-info/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    studentInfo: {
      type: Object,
      value: {
        name:'',
        school:'',
        grade:'',
        class:'',
        sex:'',
        height:'',
        weight:'',
        specialBody:false
      },
    },
    customIcon: {
      type: String,
      value: 'edit-1',
    },
    isDrawLine:false,
    isDelete:false,
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onDelete(e) {
      const { item } = e.currentTarget.dataset;
      this.triggerEvent('onDelete', item);
    },
    onSelect(e) {
      const { item } = e.currentTarget.dataset;
      this.triggerEvent('onSelect', item);
    },
    onEdit(e) {
      const { item } = e.currentTarget.dataset;
      this.triggerEvent('onEdit', item);
    },

  }
})
